<%--
  Created by IntelliJ IDEA.
  User: kezs
  Date: 2017/10/12
  Time: 16:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="view-sidebar">
    <div class="sidebar-content">
        <div class="sidebar-nav">
            <div class="sidebar-title">
                <a href="#">
                    <span class="icon"><b class="fl icon-arrow-down"></b></span>
                    <span class="text-normal">内容菜单</span>
                </a>
            </div>
            <ul class="sidebar-trans">
                <li>
                    <a href="categories">
                        <b class="sidebar-icon"><img src="../static/admin/Images/icon_author.png" width="16" height="16" /></b>
                        <span class="text-normal">类别管理</span>
                    </a>
                </li>

                <li>
                    <a href="index">
                        <b class="sidebar-icon"><img src="../static/admin/Images/icon_author.png" width="16" height="16" /></b>
                        <span class="text-normal">文章管理</span>
                    </a>
                </li>
                <li>
                    <a href="add_article">
                        <b class="sidebar-icon"><img src="../static/admin/Images/icon_message.png" width="16" height="16" /></b>
                        <span class="text-normal">添加文章</span>
                    </a>
                </li>
                <li>
                    <a href="smsInfo.html">
                        <b class="sidebar-icon"><img src="../static/admin/Images/icon_message.png" width="16" height="16" /></b>
                        <span class="text-normal">留言管理</span>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <b class="sidebar-icon"><img src="../static/admin/Images/icon_market.png" width="16" height="16" /></b>
                        <span class="text-normal">广告管理</span>
                    </a>
                </li>
            </ul>
        </div>
        <div class="sidebar-nav">
            <div class="sidebar-title">
                <a href="#">
                    <span class="icon"><b class="fl icon-arrow-down"></b></span>
                    <span class="text-normal">用户中心</span>
                </a>
            </div>
            <ul class="sidebar-trans">
                <li>
                    <a href="userInfo.html">
                        <b class="sidebar-icon"><img src="../static/admin/Images/icon_cost.png" width="16" height="16" /></b>
                        <span class="text-normal">账号管理</span>
                    </a>
                </li>

            </ul>
        </div>
    </div>
</div>


<script>
    $(".sidebar-title").live('click', function() {
        if ($(this).parent(".sidebar-nav").hasClass("sidebar-nav-fold")) {
            $(this).next().slideDown(200);
            $(this).parent(".sidebar-nav").removeClass("sidebar-nav-fold");
        } else {
            $(this).next().slideUp(200);
            $(this).parent(".sidebar-nav").addClass("sidebar-nav-fold");
        }
    });
</script>
